Skip to content

Conversation

@minitriga
Copy link
Contributor

No description provided.

@minitriga minitriga requested review from a team as code owners October 9, 2025 12:57
@github-actions github-actions bot added group/backend Issue related to the backend (API Server, Git Agent) group/frontend Issue related to the frontend (React) labels Oct 9, 2025
@minitriga minitriga marked this pull request as draft October 9, 2025 12:57
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 9, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch atg-20251009-ifc-1895

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 9, 2025

CodSpeed Performance Report

Merging #7361 will not alter performance

Comparing atg-20251009-ifc-1895 (75c3dd3) with develop (7ffbdd7)

Summary

✅ 10 untouched

// Get the profile schema for the current kind
const profileSchema = profileSchemas.find((profileSchema) => profileSchema.name === profile);
const profileSchema = profileSchemas.find(
(profileSchema) => profileSchema.name === profile?.replace("Template", "")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we need profile?.replace("Template", "")?

Comment on lines +33 to +38
is_template = None
if node_attr.source_id:
await node_attr.get_source(db=self.db)
if isinstance(node_attr.source.get_schema(), TemplateSchema):
is_template = True
if node_attr.is_from_profile or node_attr.is_default or is_template:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean that profile values will override template values? if so, that's not what I would expect, but maybe you could explain what the expected behavior is in the PR description

I would think that template values would take precedence over profile values. and I'd think that adding the profiles relationship to a template would be enough and this change to NodeProfilesApplier wouldn't be necessary, but I could definitely be missing something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

group/backend Issue related to the backend (API Server, Git Agent) group/frontend Issue related to the frontend (React)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants